<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<div class="contentBody">
	<div class="ri-time-input">
		<input type="checkbox" class="showLunar " id="show-fc-day-cnDate" checked="checked">显示农历
		<input type="checkbox" class="showLunar " id="show-fc-day-cnTerm" checked="checked">显示节气
		<input type="checkbox" class="showLunar " id="show-fc-day-cnFestival" checked="checked">显示节日
	</div>
	<%-- noTableTitle_plugin 表示table不自动添加title--%>
	<div class="ri-time clearfix noTableTitle_plugin">
		<!-- 日历 -->
		<div id="myCalendar1" class="has-toolbar fullCalendar" data-url="${ctxPathA }/usercenter/calender/search" 
		data-url-upd="${ctxPathA }/usercenter/calender/toAddOrUpdate" data-url-del="${ctxPathA }/usercenter/calender/del"
		shieldSettings='{droppable: true}'> </div>
	</div>
</div>
<div class="contextMenu" id="myMenu" style="position: absolute;display: none;">
    <ul>
      <li id="calanderinfoedit">编辑</li>
      <li id="calanderinfodele">删除</li>
      <li id="calanderinfodeleAll">删除全部</li>
    </ul>
</div>
<script type="text/javascript" src="${ctxPath}/js/lib/jquery.contextmenu.r2.js?20190903085211"></script>
<script>
$(".showLunar").click(function(){
	var checked = $(this).prop("checked");
	var id = $(this).attr("id");
	if (checked) {
		$("."+id.substr(5)).show();
    } else{
    	$("."+id.substr(5)).hide();
    }
})
</script>
           
